package com.xinqi.modules.databank.v2.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xinqi.common.green.annotation.Text;
import com.xinqi.common.mybatis.data.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 互动课件切片提问表实体层
 *
 * @author: system
 * @date: 2023/03/15
 */
@Setter
@Getter
@TableName("co_course_resource_question")
public class CourseResourceQuestionEntity extends BaseEntity {
    /** 课程资源切片id */
    @TableField(value = "resource_part_id")
    @NotNull(message = "切片id非空")
    private Long resourcePartId;
    /** 课程内容ID */
    @TableField(value = "content_id")
    @NotNull(message = "课程内容ID非空")
    private Long contentId;
    /** 班级ID */
    @TableField(value = "class_id")
    private Long classId;
    /** 用户Id */
    @TableField(value = "uid")
    private Long uid;
    /** 回复用户id */
    @TableField(value = "touid")
    private Long touid;
    /** 恢复是否已读 */
    @TableField(value = "is_read")
    private Long isRead;
    /** 父级ID */
    @TableField(value = "pid")
    private Long pid;
    /** 顶级父ID */
    @TableField(value = "tpid")
    private Long tpid;
    /** 评论内容 */
    @Text
    @TableField(value = "title")
    @NotEmpty(message = "评论内容非空")
    private String title;
    /** 图片多张图片用,分隔 */
    @TableField(value = "img")
    private String img;
    /** 学生名称 */
    @TableField(value = "student_name")
    private String studentName;
    /** 操作者与学生关系 */
    @TableField(value = "opera_relationship")
    private String operaRelationship;
}
